package com.hmdp.service;

import com.hmdp.dto.Result;
import com.hmdp.entity.Follow;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 虎哥
 * @since 2021-12-22
 */
public interface IFollowService extends IService<Follow> {

    /**
     * 关注用户的接口
     * @param concernUserId
     * @return
     */
    Result concernUser(Long concernUserId, Boolean isConcern);

    /**
     * 是否关注某用户
     * @param userId
     * @return
     */
    Result isConcernOrNot(Long userId);

    Result commonConcern(Long concernUserId);
}
